package com.aerotechnic.service.implementation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aerotechnic.dao.implementation.JobCardDao;
import com.aerotechnic.dao.implementation.LinkDao;
import com.aerotechnic.entities.JobCard;
import com.aerotechnic.entities.Link;
import com.aerotechnic.service.interfaces.LinkBoIn;

@Service("LinkBo")
@Transactional
public class LinkBo implements LinkBoIn {
	
	@Autowired
	private LinkDao linkDao;

	@Override
	public void save(Link link) {
		// TODO Auto-generated method stub
		linkDao.save(link);
	}

	@Override
	public void update(Link link) {
		// TODO Auto-generated method stub
		linkDao.update(link);
	}

	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub
		linkDao.delete(id);
	}

	@Override
	public Link findByID(Long id) {
		// TODO Auto-generated method stub
		return linkDao.findByID(id);
	}

	@Override
	public List<Link> findAll() {
		// TODO Auto-generated method stub
		return linkDao.findAll();
	}
	

}
